package de.htwg_konstanz.ebus.framework.view;

import java.util.ArrayList;
import java.util.List;

public class ImpExStatusModel {
	private boolean isImport;
	private boolean isExport;
	private int processedArticles;
	private int failedArticles;
	private int updatedArticles;
	private boolean isWellformed;
	private boolean isValid;
	private String errorCause = "";
	private List<String> articleNames = new ArrayList<String>();
	
	public boolean isImport() {
		return isImport;
	}
	public void setImport() {
		this.isImport = true;
		this.isExport = false;
	}
	public boolean isExport() {
		return isExport;
	}
	public void setExport() {
		this.isExport = true;
		this.isImport = false;
	}
	public int getProcessedArticles() {
		return processedArticles;
	}
	public void setProcessedArticles(int processedArticles) {
		this.processedArticles = processedArticles;
	}
	public int getFailedArticles() {
		return failedArticles;
	}
	public void setFailedArticles(int failedArticles) {
		this.failedArticles = failedArticles;
	}
	public int getUpdatedArticles() {
		return updatedArticles;
	}
	public void setUpdatedArticles(int updatedArticles) {
		this.updatedArticles = updatedArticles;
	}
	public boolean isWellformed() {
		return isWellformed;
	}
	public void setWellformed(boolean isWellformed) {
		this.isWellformed = isWellformed;
	}
	public boolean isValid() {
		return isValid;
	}
	public void setValid(boolean isValid) {
		this.isValid = isValid;
	}
	public List<String> getArticleNames() {
		return articleNames;
	}
	public void addArticleName(String article) {
		articleNames.add(article);
	}
	public String getErrorCause() {
		return errorCause;
	}
	public void setErrorCause(String errorCause) {
		this.errorCause = errorCause;
	}
	
	
}
